<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
    <title>Reference</title>
    <link rel="stylesheet" href="../../luadoc.css" type="text/css" />
	<!--meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/-->
</head>

<body>
<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->

<div id="main">

<div id="navigation">


<h1>LuaDoc</h1>
<ul>
	
	<li><a href="../../index.html">Index</a></li>
	
</ul>


<!-- Module list -->



<!-- File list -->

<h1>Files</h1>
<ul>

	<li>
		<a href="../../files/Compiler.html">Compiler.lua</a>
	</li>

	<li>
		<a href="../../files/Editor.html">Editor.lua</a>
	</li>

	<li>
		<a href="../../files/Instance.html">Instance.lua</a>
	</li>

	<li>
		<a href="../../files/Libraries.html">Libraries.lua</a>
	</li>

	<li>
		<a href="../../files/Permissions.html">Permissions.lua</a>
	</li>

	<li>
		<a href="../../files/Preprocessor.html">Preprocessor.lua</a>
	</li>

	<li>
		<a href="../../files/SFLib.html">SFLib.lua</a>
	</li>

	<li><strong>libs_cl/ents.lua</strong></li>
	
	<li>
		<a href="../../files/libs_cl/screen.html">libs_cl/screen.lua</a>
	</li>

	<li>
		<a href="../../files/libs_sh/builtins.html">libs_sh/builtins.lua</a>
	</li>

	<li>
		<a href="../../files/libs_sh/files.html">libs_sh/files.lua</a>
	</li>

	<li>
		<a href="../../files/libs_sh/find.html">libs_sh/find.lua</a>
	</li>

	<li>
		<a href="../../files/libs_sh/time.html">libs_sh/time.lua</a>
	</li>

	<li>
		<a href="../../files/libs_sh/trace.html">libs_sh/trace.lua</a>
	</li>

	<li>
		<a href="../../files/libs_sv/ents.html">libs_sv/ents.lua</a>
	</li>

	<li>
		<a href="../../files/libs_sv/wire.html">libs_sv/wire.lua</a>
	</li>

	<li>
		<a href="../../files/reload.html">reload.lua</a>
	</li>

</ul>






</div> <!-- id="navigation" -->

<div id="content">

<h1>File <code>libs_cl/ents.lua</code></h1>







<h2>Functions</h2>
<table class="function_list">

	<tr>
	<td class="name" nowrap><a href="#SF.Entities.GetOwner">SF.Entities.GetOwner</a>&nbsp;(entity)</td>
	<td class="summary">Gets the entity's owner TODO: Optimize this! </td>
	</tr>

	<tr>
	<td class="name" nowrap><a href="#SF.Entities.IsValid">SF.Entities.IsValid</a>&nbsp;(entity)</td>
	<td class="summary">Returns true if valid, false if not </td>
	</tr>

	<tr>
	<td class="name" nowrap><a href="#SF.Entities.Unwrap">SF.Entities.Unwrap</a>&nbsp;(wrapped)</td>
	<td class="summary">Unwraps an entity wrapper to a real entity </td>
	</tr>

	<tr>
	<td class="name" nowrap><a href="#SF.Entities.Wrap">SF.Entities.Wrap</a>&nbsp;(ent)</td>
	<td class="summary">Wraps a real entity to an entity wrapper </td>
	</tr>

</table>




<h2>Tables</h2>
<table class="table_list">

	<tr>
	<td class="name" nowrap><a href="#SF.Entities.Metatable">SF.Entities.Metatable</a></td>
	<td class="summary">The entity wrapper metatable </td>
	</tr>

</table>



<br/>
<br/>




<h2><a name="functions"></a>Functions</h2>
<dl class="function">



<dt><a name="SF.Entities.GetOwner"></a><strong>SF.Entities.GetOwner</strong>&nbsp;(entity)</dt>
<dd>
Gets the entity's owner TODO: Optimize this!


<h3>Parameters:</h3>
<ul>
	
	<li>
	  <code><em>entity</em></code>: 
	</li>
	
</ul>






<h3>Return value:</h3>
<ul>The entities owner, or nil if not found</ul>



</dd>




<dt><a name="SF.Entities.IsValid"></a><strong>SF.Entities.IsValid</strong>&nbsp;(entity)</dt>
<dd>
Returns true if valid, false if not


<h3>Parameters:</h3>
<ul>
	
	<li>
	  <code><em>entity</em></code>: 
	</li>
	
</ul>








</dd>




<dt><a name="SF.Entities.Unwrap"></a><strong>SF.Entities.Unwrap</strong>&nbsp;(wrapped)</dt>
<dd>
Unwraps an entity wrapper to a real entity


<h3>Parameters:</h3>
<ul>
	
	<li>
	  <code><em>wrapped</em></code>: 
	</li>
	
</ul>








</dd>




<dt><a name="SF.Entities.Wrap"></a><strong>SF.Entities.Wrap</strong>&nbsp;(ent)</dt>
<dd>
Wraps a real entity to an entity wrapper


<h3>Parameters:</h3>
<ul>
	
	<li>
	  <code><em>ent</em></code>: 
	</li>
	
</ul>








</dd>


</dl>




<h2><a name="tables"></a>Tables</h2>
<dl class="table">

<dt><a name="SF.Entities.Metatable"></a><strong>SF.Entities.Metatable</strong></dt>
<dd>The entity wrapper metatable<br /><br />



</dd>


</dl>




</div> <!-- id="content" -->

</div> <!-- id="main" -->

<div id="about">
	<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p>
</div> <!-- id="about" -->

</div> <!-- id="container" -->	
</body>
</html>
